package com.yangming.mapper;

import com.yangming.model.Records;
import org.apache.ibatis.annotations.Param;

public interface RecordsMapper {
    /**
     *
     * @mbggenerated 2018-09-11
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *
     * @mbggenerated 2018-09-11
     */
    int insert(Records record);

    /**
     *
     * @mbggenerated 2018-09-11
     */
    int insertSelective(Records record);

    /**
     *
     * @mbggenerated 2018-09-11
     */
    Records selectByPrimaryKey(Integer id);

    /**
     *
     * @mbggenerated 2018-09-11
     */
    int updateByPrimaryKeySelective(Records record);

    /**
     *
     * @mbggenerated 2018-09-11
     */
    int updateByPrimaryKey(Records record);
    /**
     * 查询货源用户是否存在交易记录
     */
    Boolean isServiceExist(@Param("serviceId") Integer serviceId, @Param("supplyUserId") Integer supplyUserId);
    /**
     * 根据订单号查询记录
     */
    Records selectByOrderNo(String orderNo);
}